package com.hclc.yxb.controller;

import com.hclc.entity.model.result.ResultEntity;
import com.hclc.yxb.ao.TestAo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName PwlAddProductController
 * @Author: yurj
 * @Mail：1638234804@qq.com
 * @Date: Create in 18:18 2020/8/10
 * @version: 1.0
 */
@Api(tags = "1.0-demo", description = "模块")
@RestController
@RequestMapping("console/test")
@Validated
public class DemoTestController {


    /**
     * 新增产品内容
     * @param ao
     * @return com.hclc.pwl.model.result.ResultEntity
     * @author yurj
     * @mail 1638234804@qq.com
     * @version 1.0
     * @date 2020/8/10 18:21
     */
    @ApiOperation("新增产品内容")
    @PostMapping(value = "/addCommodity", produces = {MediaType.APPLICATION_JSON_VALUE})
    public ResultEntity addCommodity(@ApiParam(value = "添加参数") @RequestBody @Validated TestAo ao) {
        return ResultEntity.ResultSuccess();
    }
}
